package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cache.DemoService;

/**
 * 功能描述,该部分必须以中文句号结尾。
 *
 * @author panqingcui
 * @create 2017-10-24 12:57
 */
@Controller
public class CacheController {
    @Autowired DemoService demoService;

    @RequestMapping(value = "/summary", method = RequestMethod.GET)
    @ResponseBody
    public String getId(String id) {
        return demoService.getId(id);
    }
    @ResponseBody
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String getTestId(String id) {
        return demoService.getId(id);
    }

}
